import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
//登录获取路由信息
export function getRouters(params) {
  return request({
    url: '/routers',
    method: 'get',
    params
  })
}
//获取用户信息

export function getUserInfo(params) {
  return request({
    url: '/userInfo',
    method: 'get',
    params
    
  })
}

